Skip to content

fix: patch flatted CVE-2026-32141 unbounded recursion DoS - #27

Merged
BYK merged 1 commit into
masterfrom
fix/flatted-cve-2026-32141
Mar 20, 2026
Merged

BYK merged 1 commit into
masterfrom
fix/flatted-cve-2026-32141

Conversation

@BYK

@BYK BYK commented Mar 20, 2026

Copy link
Copy Markdown
Owner

Resolves Dependabot alert #78.

Summary

Adds a pnpm override for flatted >=3.4.0 to fix CVE-2026-32141 (HIGH, CVSS 7.5) — an unbounded recursion DoS in flatted.parse() that can crash Node.js with a single crafted payload.

Details

The transitive dependency chain is:

eslint → file-entry-cache → flat-cache@4.0.1 → flatted@3.3.4 (vulnerable)

flat-cache@4.0.1 declares flatted@^3.2.9, which is semver-compatible with 3.4.0+, so the override safely forces resolution to the patched version (3.4.2) without breaking the dependency contract. This follows the existing override pattern used for serialize-javascript and diff.

Changes

  • package.json: Added "flatted": ">=3.4.0" to pnpm.overrides
  • pnpm-lock.yaml: Regenerated (flatted@3.3.4 → flatted@3.4.2)

All 38 tests pass ✅

Add pnpm override for flatted >=3.4.0 to resolve Dependabot alert #78.

The vulnerability allows a crafted payload to crash Node.js via unbounded
recursion in flatted.parse(). The transitive dependency chain is:
eslint → file-entry-cache → flat-cache → flatted.

flat-cache@4.0.1 declares flatted@^3.2.9, which is semver-compatible
with the patched 3.4.0+, so the override safely forces resolution to
the fixed version (3.4.2) without breaking the dependency contract.
@BYK
BYK marked this pull request as ready for review March 20, 2026 12:31
@BYK
BYK merged commit 6ce2bec into master Mar 20, 2026
4 checks passed
@BYK
BYK deleted the fix/flatted-cve-2026-32141 branch March 20, 2026 12:32
@craft-deployer craft-deployer Bot mentioned this pull request Mar 20, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant